IIM automatically installs a scripting interface (iimwsh.ocx): thus you can control Internet Macros with any programming languages that support ActiveX controls. Almost all Windows programming languages support this technology, including Visual Basic and the free Windows Scripting Host.
More examples are located in
C:/Program Files/InternetMacros3/Examples/Windows Scripting Host/
if you used the default installation path.
Windows Scripting Host Example:
(To run this example, copy this text in a file with the ending ".vbs", e.g. "test.vbs").
set iim1= CreateObject ("iimwsh.iim")
i = iim1.iimInit
i = iim1.iimSet("-var1", "Tom Tester")
i = iim1.iimSet("-tray", "")
i = iim1.iimDisplay("This is a test")
i = iim1.iimPlay("myfirstmacro")
If i > 0 Then
s = "Everything OK)
Else
s = iim1.iimGetLastMessage()
End If
MsgBox s
i = iim1.iimExit